./clean.sh

cp control test

../out/smolen test

testsize=$(wc -c <test)
smolsize=$(wc -c <test.smol)
if [ $smolsize -ge $testsize ]; then
	ls -lh test test.smol
	echo Larg - FAIL
	exit 1
fi

rm test
mv test.smol test.nosmol
../out/smolen test.nosmol

if diff control test.nosmol.larg; then
	echo Larg - PASS
else
	echo Larg - FAIL
	exit 2
fi


